export class ValidationErrorResponse {
  code: number;
  message: string;
  errors: ValidationError[];
  timestamp: string;

  constructor(errors: ValidationError[]) {
    this.code = 400;
    this.message = '请求参数验证失败';
    this.errors = errors;
    this.timestamp = new Date().toISOString();
  }
}

export class ValidationError {
  field: string;
  message: string;
  value?: any;

  constructor(field: string, message: string, value?: any) {
    this.field = field;
    this.message = message;
    this.value = value;
  }
}
